package com.factory_project;

public class MotoOperation {
    public MotorVehicle motos[] = new MotorVehicle[8];
    //初始化10辆车
    public void init(){
        motos[0] = new Car("津001","比亚迪","SUV",5);
        motos[1] = new Car("津002","比亚迪","MPV",5);
        motos[2] = new Car("津003","比亚迪","Sedan",5);
        motos[3] = new Car("津004","比亚迪","Hatchback",5);

        motos[5] = new Bus("B001","天津路",16,5);
        motos[6] = new Bus("B002","天津路",16,5);
        motos[7] = new Bus("B003","天津路",34,5);
        motos[8] = new Bus("B004","天津路",34,5);
    }
}
